package de.clapp.toolkit;

import android.os.Handler;
import android.os.Message;
import de.clapp.backend.requests.ServerRequest;
import de.clapp.club.ClubListAdapter;

public class ConnectionHandler extends Handler
{
    private ClubListAdapter adapter;

    private ServerRequest request;

    public ConnectionHandler(ClubListAdapter adapter, ServerRequest request)
    {
        this.adapter = adapter;
        this.request = request;
    }

    @Override
    public void handleMessage(Message msg)
    {
        // ClubRequest cr = (ClubRequest)
        // msg.getData().getSerializable("clubs");
        ConnectionThread ct = new ConnectionThread(request, this, adapter);
        ct.start();
    }
}
